package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.DevicesGoodsMapper;
import org.linlinjava.litemall.db.domain.DevicesGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DevicesGoodsService {

    @Autowired
    private DevicesGoodsMapper mapper;

    public List<DevicesGoods> getAll() {
        return mapper.selectAll();
    }
    public DevicesGoods selectById(Integer id){
        return mapper.selectById(id);
    };
    public int insert(DevicesGoods goods){
        return mapper.insert(goods);
    };
    public int update(DevicesGoods goods){
        return mapper.update(goods);
    };
    public int deleteById(Integer id){
        return mapper.deleteById(id);
    };
}
